﻿@{
    ViewBag.Title = "Index";
}
<div class="site_map">
    @Html.ActionLink("Home", "Index", "Home", new { Area = "" }, new { })
    / Users
</div>
<br />
<div class="search_content">
    <div>
        @using (Ajax.BeginForm("Index", "User", new AjaxOptions
            {
                InsertionMode = InsertionMode.Replace,
                HttpMethod = "GET",
                UpdateTargetId = "unobtrusive",
            }, new { @class = "form-inline" }))
        {
            @Html.TextBox("keyWord", "", new { placeholder = "Full Name or Username" })
            <button type="submit" class="btn" value="Search" style="width: 80px;">
                Search</button>
            @Html.ActionLink("Reload", "Index", "User", null, new { @class = "btn", style = "width:54px" })
        }
    </div>
</div>
<br />
<div>
    <span>@Html.ActionLink("Create User", "Create", null, new { @class = "btn" })</span>
    <span>@Html.ActionLink("Import Users", "Import", null, new { @class = "btn" })</span>
</div>
<br />
<div id="unobtrusive">
    @Html.Partial("_List")
</div>